package models.common;

import play.db.jpa.Model;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * Created by sunqw on 3/5 0005.
 * 包含对信息的创建记录，是一个MappedSuperClass
 * Id由Model基类生成
 */
@MappedSuperclass
public class CreateInfo extends Model{

    /**
     * 创建人
     */
    public  String createUser;

    /**
     * 创建时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="create_date")
    public Date createDate;
}
